/**
 * 
 */
package ve.com.neometrica.inventario.impl.service;

import java.util.List;

import ve.com.neometrica.inventario.api.dao.TransaccionDao;
import ve.com.neometrica.inventario.api.model.Transaccion;
import ve.com.neometrica.inventario.api.service.TransaccionService;

/**
 * @author a.cabrera
 *
 */
public class TransaccionServiceImpl implements TransaccionService {

	TransaccionDao transaccionDao;
	/* (non-Javadoc)
	 * @see ve.com.neometrica.inventario.api.service.TransaccionService#save(ve.com.neometrica.inventario.api.model.Transaccion)
	 */
	@Override
	public void save(Transaccion transaccion) {
		this.transaccionDao.save(transaccion);
	}

	/* (non-Javadoc)
	 * @see ve.com.neometrica.inventario.api.service.TransaccionService#getAll()
	 */
	@Override
	public List<Transaccion> getAll() {
		return this.transaccionDao.getAll();
	}

	/* (non-Javadoc)
	 * @see ve.com.neometrica.inventario.api.service.TransaccionService#getById(java.lang.Integer)
	 */
	@Override
	public Transaccion getById(Integer id) {
		return this.transaccionDao.getById(id);
	}

	public TransaccionDao getTransaccionDao() {
		return transaccionDao;
	}

	public void setTransaccionDao(TransaccionDao transaccionDao) {
		this.transaccionDao = transaccionDao;
	}

}
